<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@page import="com.demoweb.model.dto.Membership"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FLAPPY FISH</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="/demoweb/styles/flappystyle.css" rel="stylesheet" type="text/css" />

</head>
<body>

<%	pageContext.include("/WEB-INF/views/flappy/header.jsp");%>


<div id="content" >
    	<link href="/demoweb/styles/input2.css" rel="stylesheet" type="text/css" />
  <!-- ---------------------------------- Main page content ----------------------------------- -->
  	<div id="pageContainer">

		<div id="inputcontent">
			<br /><br />
		    <div id="inputmain">
		        <div class="inputsubtitle">로그인정보</div>
		        
		        <form action="login.action" method="post">
		        <% if (request.getParameter("returnuri") != null) { %>
		        <%-- <input type="hidden" .. /> : 눈에 보이지 않는 입력 요소 --%>
		        <%
		        //http://....?returnuri=abc.action&pageno
		        // -> abc.action?pageno
		        //http://....?returnuri=abc.action?boardno=1&pageno
		        // -> abc.action?boardno=1&pageno
		        String returnuri = request.getParameter("returnuri");
		        String query = request.getParameter("pageno");
		        if (query != null && query.length() != 0) {		        			        	
		        	if (returnuri.contains("?")) {
		        		query="&pageno=" + query;
		        	} else {
		        		query = "?pageno=" + query;
		        	}
		        } else {
		        	query = "";
		        }
		        %>
		        <input type="hidden" name="returnuri"
		        	value='<%= returnuri + query %>' />
		        <% } %>
		        
		        <table>
		            <tr>
		                <th>아이디(ID)</th>
		                <td>
		                    <input type="text" name="memberId" style="width:280px" />
		                </td>
		            </tr>
		            <tr>
		                <th>비밀번호</th>
		                <td>
		                	<input type="password" name="passwd" style="width:280px" />
		                </td>
		            </tr>
		        </table>
		        <div class="buttons">
		        	<input type="submit" value="로그인" style="height:25px" />
		        	<input type="button" value="취소" style="height:25px" />
		        </div>
		        </form>
		        
		    </div>
		</div>   	
	
	</div>

    <!-- ---------------------------------- Main page content ----------------------------------- -->
</div>
<div id="footer"  style="margin-top: 568px; float: inherit">
  <p id="legal">Copyright &copy; 2007 Red Avenue. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
  <p id="links"><a href="http://www.free-css.com/">Home</a> | <a href="http://www.free-css.com/">Terms of Use</a></p>
</div>
</body>
</html>  
